using UnityGameFramework.Runtime;
using Unity.VisualScripting;

namespace LS.UGFUnits
{
    [UnitCategory("Unity Game Framework/Data Table")]
    public abstract class DataTableUnit : FrameworkComponentUnit<DataTableComponent>
    {
        [DoNotSerialize]
        public override DataTableComponent Target
        {
            get
            {
                var com = FrameworkObserver.Observing() ? FrameworkObserver.DataTable : null;
                CheckFrameworkAvailable();
                return com;
            }
        }
    }
}
